package com.alnex.mypat.ui;

import com.alnex.mypat.main.PatMain;

import javax.swing.*;
import java.awt.*;

/**
 * 面板
 */
public class JpanelSoft extends JPanel {

    //设置面板透明
    public JpanelSoft(){
        this.setOpaque(false);
    }

    @Override
    public void paint(Graphics g) {
//        g.drawString("每日-日报",50,50);
        //展示图片‪
        // g.drawImage(new ImageIcon("D:\\10157\\桌面\\app.jpg").getImage(),5,0,null);
        //绘制等待动画
        PatMain.wait.draw(g);//绘制等待动画
        PatMain.dance.draw(g);//绘制跳舞动画
    }
}
